package com.gopay.common.cps.dao.wallet.bouns;

import com.gopay.common.base.dao.BaseDAO;
import com.gopay.common.domain.dps.WaBounsMainOrder;

import java.util.List;

/**
 * Created by 
 * @author boai 
 * on 2017/1/5.
 */
public interface WaBounsMainOrderDao extends BaseDAO<WaBounsMainOrder, Integer> {
	
	/**
	 * 
	 * 根据国付宝订单号查询红包业务主表，当查询结果唯一时，返回结果，否则返回空。
	 * @param GopayOrderId
	 * @return WaBounsMainOrder
	 * add by tangyang at 20170106
	 */
	public WaBounsMainOrder queryByGopayOrderId(String gopayOrderId);

	/**
	 * 根据红包口令查询出不为30已失效的口令
	 * @param password
	 * @return
     */
	List<WaBounsMainOrder> findbyPassword(String password);

	/**
	 * 查询出有效的口令红包
	 * @param password
	 * @return
     */
	List<WaBounsMainOrder> findbyAblePassword(String password);
}
